package cn.com.zero.web.config;

import cn.com.zero.web.config.converter.StringToDateConverter;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;

import java.util.Date;

/**
 * @author xiongxj
 * @version 1.0.0
 * @Description web工程自动装配的配置信息
 * @createTime 2023/3/9 15:58
 */
@Configuration
@AutoConfigureBefore(ErrorMvcAutoConfiguration.class)
public class ZeroWebAutoConfig {

    @Bean
    public Converter<String, Date> stringToDateConverter() {
        return new StringToDateConverter();
    }
}
